package experiment.exception;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.servlet.support.RequestContextUtils;

import experiment.response.ResultVO;

@RestControllerAdvice
public class BusiExceptionHandler {
	
	@ExceptionHandler({BusiException.class})
	public ResultVO handleEx(BusiException ex) {
		ResultVO result = new ResultVO();
		result.setCode(ex.getResult().getCode());
		result.setMsg(ex.getResult().getMsg());
		return result;
	}
}
